package com.md.api;

import com.md.model.system.CommonResult;
import com.md.request.GlobalConfigRequest;
import com.md.response.GlobalConfigResponse;
import com.md.value.constants.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 刘骄阳
 * 2024-12-15 1:24
 */
@Api(tags = {ApiConstants.GLOBAL_CONFIG})
public interface GlobalConfigApi {
  String PATH_PREFIX = "/api/config";

  @PostMapping(PATH_PREFIX + "/list")
  @ApiOperation("查询配置列表")
  CommonResult<List<GlobalConfigResponse>> list();

  @PostMapping(PATH_PREFIX + "/update")
  @ApiOperation("更新配置")
  CommonResult<GlobalConfigResponse> update(@RequestBody GlobalConfigRequest request);

}
